<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
   <tr>
      <td>序号</td>
      <td>姓名</td>
      <td> 性别</td>
      <td>年级</td>
      <td>专业</td>
      <td>操作</td>
   </tr>
    {% for i in list %}
   <tr>
      <td>{{ i.id }}</td>
      <td>{{ i.stu_name }}</td>
      <td>{{ i.sex }}</td>
      <td>{{ i.stu_class }}</td>
      <td>{{ i.specialized }}</td>
      <td>
         <a href="{% url 'get_stu' i.id %}">查看</a>
         <a href="{% url 'del_stu' i.id %}">删除</a>
      </td>
   </tr>
    {% endfor %}
   <th>
      <a href="#">1</a><a href="#">2</a><a href="#">3</a>
   </th>
</table>
</body>
</html>